package com.wgchao.customer.common;

import com.wgchao.customer.common.feign.AuthFeign;
import com.wgchao.customer.common.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @author: wgchao
 * @createTime: 2019/8/9 1:55 PM
 * @Description: 测试
 */
@RestController
public class TestController {

    @Value("${server.port}")
    String port;
    @Autowired
    private TestService testService;

    @GetMapping("/hello")
    public String hello(){
        testService.test();
        return "hello-"+port;
    }
}
